

package Clases;

import java.io.Serializable;
import java.sql.Date;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.PrimaryKeyJoinColumn;



@Entity
@PrimaryKeyJoinColumn(name="Persona_id")
public class Director extends Persona implements Serializable{
    private List movies;

    public Director() {
    }

    public Director(int id, String name, String lastname, Date birthDate, String placeBirth, String picture, String imagen) {
    }
     @OneToMany(mappedBy="movies")
     public List getmovies(){ return this.movies; }


}
